<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>船舶基础资料管理</title>
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		
		<!-- 文本框 -->
		<link rel="stylesheet" href="static/ace/css/riverboat.css" />
		<script type="text/javascript" src="static/js/jquery-1.7.2.js" />
		<!--提示框-->
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		<!-- 日期框 -->
		<link rel="stylesheet" href="static/ace/css/datepicker.css" />
		<!-- jsp文件头和头部 -->
		<%@ include file="../../../system/index/top.jsp"%>
</head>
<body class="no-skin"style="overflow-x:scroll">
<div style="width:98%;">
<div class="main-container" id="main-container">
	<div class="main-content">
		<div class="main-content-inner">
			<div class="page-content">
				<div class="row">
					<div class="col-xs-12">
						<form action="routeAttchFee/list" method="post" name="internalFeeManage" id="internalFeeManage">
						<fieldset>
 								<table style="margin-top:5px;"class="tab2">
 									<tr ><td colspan="2" class="tit2">船舶基础资料管理</td></tr>
 									<tr>
 										<td><span class="span10">快速检索码：</span></td>
										<td><input type="text" name="FAST_SEARCH_CODE" id="FAST_SEARCH_CODE"  maxlength="32" /></td>
 										<td><span class="span10">是否可用：</span></td> 
										<td>
											<select name="ENABLE">
											<option value="">请选择</option>
											  <option value="1">是</option>
											  <option value="2">否</option>
											</select>
										</td>
										<td><span class="span10">船舶代码：</span></td>
										<td><input type="text" name="SHIP_CODE" id="SHIP_CODE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">船名：</span></td>
									<td><input type="text" name="SHIP_NAME" id="SHIP_NAME"  maxlength="32" /></td>
 									<td><span class="span10">结算单位：</span></td>
									<td><input type="text" name="SETTLE_UNIT" id="SETTLE_UNIT"  maxlength="32" /></td>
 									<td><span class="span10">船舶属性：</span></td> 
										<td>
											<select name="SHIP_ATTRIBUTE">
											<option value="">请选择</option>
											  <option>自有船</option>
											  <option>期租船</option>
											   <option>光租船</option>
											  <option>外配船</option>
											</select>
										</td>
 									</tr>
 									<tr>
 									<td><span class="span10">英文名：</span></td>
									<td><input type="text" name="ENGLISH_NAME" id="ENGLISH_NAME"  maxlength="32" /></td>
									<td><span class="span10">船舶总长：</span></td>
									<td><input type="text" name="SHIP_TOTAL_LENGTH" id="SHIP_TOTAL_LENGTH"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage">请输入数字和小数点</span></td>
									<td><span class="span10">海关监管部号码：</span></td>
									<td><input type="text" name="CUSTOMS_SUPERVISE_NUMBER" id="CUSTOMS_SUPERVISE_NUMBER"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">船长：</span></td>
									<td><input type="text" name="SHIP_LENGTH" id="SHIP_LENGTH"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage1">请输入数字和小数点</span></td>
									<td><span class="span10">最大船高：</span></td>
									<td><input type="text" name="MAX_BOAT_HIGH" id="MAX_BOAT_HIGH"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage2">请输入数字和小数点</span></td>
									<td><span class="span10">最大船宽：</span></td>
									<td><input type="text" name="MAX_BOAT_WIDE" id="MAX_BOAT_WIDE"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage3">请输入数字和小数点</span></td>
 									</tr>
 									<tr>
 									<td><span class="span10">总吨：</span></td>
									<td><input type="text" name="GROSS_REGISTERED_TONNAGE" id="GROSS_REGISTERED_TONNAGE"  maxlength="32" onkeyup="numberTwo()"/><i>(T)</i><font color="blue">*</font>
									<span style="display:none" id="show">请输入数字</span></td>
									<td><span class="span10">净吨：</span></td>
									<td><input type="text" name="NET_TON" id="NET_TON"  maxlength="32" onkeyup="numberTwo()"/><i>(T)</i><font color="blue">*</font>
									<span style="display:none" id="show1">请输入数字</span></td>
									<td><span class="span10">型深：</span></td>
									<td><input type="text" name="TYPE_DEEP" id="TYPE_DEEP"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage4">请输入数字和小数点</span></td>
 									</tr>
 									<tr>
 									<td><span class="span10">载货量：</span></td>
									<td><input type="text" name="FREIGHT_CAPACITY" id="FREIGHT_CAPACITY"  maxlength="32" onkeyup="number()"/><i>(T)</i><font color="red">*</font>
									<span style="display:none" id="showPage5">请输入数字和小数点</span></td>
									<td><span class="span10">满载排水量：</span></td>
									<td><input type="text" name="LOAD_DISPLACEMENT" id="LOAD_DISPLACEMENT"  maxlength="32" onkeyup="number()"/><i>(T)</i><font color="red">*</font>
									<span style="display:none" id="showPage6">请输入数字和小数点</span></td>
									<td><span class="span10">空载排水量：</span></td>
									<td><input type="text" name="LIGHT_DISPLACEMENT" id="LIGHT_DISPLACEMENT"  maxlength="32" onkeyup="number()"/><i>(T)</i><font color="red">*</font>
									<span style="display:none" id="showPage7">请输入数字和小数点</span></td>
 									</tr>
 									<tr>
 									<td><span class="span10">满载吃水：</span></td>
									<td><input type="text" name="LOAD_DRAUGHT" id="LOAD_DRAUGHT"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage8">请输入数字和小数点</span></td>
									<td><span class="span10">空载吃水：</span></td>
									<td><input type="text" name="LIGHT_DRAUGHT" id="LIGHT_DRAUGHT"  maxlength="32" onkeyup="number()"/><i>(M)</i><font color="red">*</font>
									<span style="display:none" id="showPage9">请输入数字和小数点</span></td>
									<td><span class="span10">主机台数：</span></td>
									<td><input type="text" name="MASTER_NUMBER" id="MASTER_NUMBER"  maxlength="32" onkeyup="numberTwo()"/><font color="blue">*</font>
									<span style="display:none" id="show2">请输入数字</span></td>
 									</tr>
 									<tr>
 									<td><span class="span10">主机功率：</span></td>
									<td><input type="text" name="MASTER_POWER" id="MASTER_POWER"  maxlength="32" onkeyup="numberTwo()"/><i>(KW)</i><font color="blue">*</font>
									<span style="display:none" id="show3">请输入数字</span></td>
									<td><span class="span10">主机型号：</span></td>
									<td><input type="text" name="MASTER_TYPE_NUMBER" id="MASTER_TYPE_NUMBER"  maxlength="32" /></td>
									<td><span class="span10">集装箱数：</span></td>
									<td><input type="text" name="CONTAINER_NUMBER" id="CONTAINER_NUMBER"  maxlength="32" onkeyup="numberTwo()"/><i>(T)</i><font color="blue">*</font>
									<span style="display:none" id="show21">请输入数字</span></td>
 									</tr>
 									<tr>
 									<td><span class="span10">航线（航区）：</span></td>
									<td><input type="text" name="ROUTE" id="ROUTE"  maxlength="32" /></td>
									<td><span class="span10">建造日期：</span></td>
<!-- 									<td><input type="text" name="BUILD_DATE" id="BUILD_DATE"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="BUILD_DATE" id="BUILD_DATE"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">危险平适装种类：</span></td>
									<td><input type="text" name="DANGEROUS_GOODS_TYPE" id="DANGEROUS_GOODS_TYPE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">证件有效期：</span></td>
<!-- 									<td><input type="text" name="CERTIFICATE_VALIDITY_TERM" id="CERTIFICATE_VALIDITY_TERM"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="CERTIFICATE_VALIDITY_TERM" id="CERTIFICATE_VALIDITY_TERM"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">联系电话：</span></td>
									<td><input type="text" name="TEL" id="TEL"  maxlength="32" /></td>
									<td><span class="span10">船舶类型：</span></td>
									<td><input type="text" name="SHIP_TYPE" id="SHIP_TYPE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">交通部批文有效期：</span></td>
<!-- 									<td><input type="text" name="TRAFFIC_DEPARTMENT_APPROVAL_VALIDITY_TERM" id="TRAFFIC_DEPARTMENT_APPROVAL_VALIDITY_TERM"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="TRAFFIC_DEPARTMENT_APPROVAL_VALIDITY_TERM" id="TRAFFIC_DEPARTMENT_APPROVAL_VALIDITY_TERM"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">内外贸同船有效期：</span></td>
<!-- 									<td><input type="text" name="INTERNAL_FOREIGN_TRADE_VALIDITY_TERM" id="INTERNAL_FOREIGN_TRADE_VALIDITY_TERM"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="INTERNAL_FOREIGN_TRADE_VALIDITY_TERM" id="INTERNAL_FOREIGN_TRADE_VALIDITY_TERM"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">光船租赁有效期：</span></td>
<!-- 									<td><input type="text" name="BAREBOAT_LEASE_VALIDITY_TERM" id="BAREBOAT_LEASE_VALIDITY_TERM"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="BAREBOAT_LEASE_VALIDITY_TERM" id="BAREBOAT_LEASE_VALIDITY_TERM"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">保险类型：</span></td>
									<td><input type="text" name="INSURANCE_TYPE" id="INSURANCE_TYPE"  maxlength="32" /></td>
									<td><span class="span10">投保人：</span></td>
									<td><input type="text" name="POLICY_HOLDER" id="POLICY_HOLDER"  maxlength="32" /></td>
									<td><span class="span10">保险公司：</span></td>
									<td><input type="text" name="INSURANCE_COMPANY" id="INSURANCE_COMPANY"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">投保时间：</span></td>
<!-- 									<td><input type="text" name="INSURE_TIME" id="INSURE_TIME"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="INSURE_TIME" id="INSURE_TIME"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">到期时间：</span></td>
<!-- 									<td><input type="text" name="EXPIRATION_TIME" id="EXPIRATION_TIME"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="EXPIRATION_TIME" id="EXPIRATION_TIME"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">备注：</span></td>
									<td><input type="text" name="REMARK" id="REMARK"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">初次登记号：</span></td>
									<td><input type="text" name="INSURE_TIME" id="INSURE_TIME"  maxlength="32" /></td>
									<td><span class="span10">船检登记号：</span></td>
									<td><input type="text" name="EXPIRATION_TIME" id="EXPIRATION_TIME"  maxlength="32" /></td>
									<td><span class="span10">船舶识别码：</span></td>
									<td><input type="text" name="REMARK" id="REMARK"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">营业运输证编号：</span></td>
									<td><input type="text" name="INSURE_TIME" id="INSURE_TIME"  maxlength="32" /></td>
									<td><span class="span10">船舶登记号：</span></td>
									<td><input type="text" name="EXPIRATION_TIME" id="EXPIRATION_TIME"  maxlength="32" /></td>
									<td><span class="span10">联系人：</span></td>
									<td><input type="text" name="CONTACT" id="CONTACT"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">船籍港：</span></td>
									<td><input type="text" name="SHIP_PORT" id="SHIP_PORT"  maxlength="32" /></td>
									<td><span class="span10">载重吨：</span></td>
									<td><input type="text" name="TON_WEIGHT" id="TON_WEIGHT"  maxlength="32" onkeyup="numberTwo()"/><i>(T)</i><font color="blue">*</font>
									<span style="display:none" id="show22">请输入数字</span></td>
									<td><span class="span10">主机类型：</span></td>
									<td><input type="text" name="MASTER_TYPE" id="MASTER_TYPE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">海关监管部：</span></td>
									<td><input type="text" name="CUSTOMS_SUPERVISE_DEPARTMENT" id="CUSTOMS_SUPERVISE_DEPARTMENT"  maxlength="32" /></td>
									<td><span class="span10">川江及三峡库区船舶航行证书：</span></td>
									<td><input type="text" name="CHUANGJIANG_AND_THREE_GORGES_CERTIFICATE" id="CHUANGJIANG_AND_THREE_GORGES_CERTIFICATE"  maxlength="32" /></td>
									<td><span class="span10">内河船舶登记证书(国籍证书)：</span></td>
									<td><input type="text" name="INLAND_BOAT_REGISTRATION" id="INLAND_BOAT_REGISTRATION"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">内河船舶载重线证书：</span></td>
									<td><input type="text" name="INLAND_BOAT_LOAD_CERTIFICATE" id="INLAND_BOAT_LOAD_CERTIFICATE"  maxlength="32" /></td>
									<td><span class="span10">内河船舶防止生活污水污染证书：</span></td>
									<td><input type="text" name="INLAND_BOAT_POLLUTION_PREVERTION" id="INLAND_BOAT_POLLUTION_PREVERTION"  maxlength="32" /></td>
									<td><span class="span10">水路运输许可证书：</span></td>
									<td><input type="text" name="WATER_TRANSPROTATION_LICENCE" id="WATER_TRANSPROTATION_LICENCE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">船舶年检合格证书：</span></td>
									<td><input type="text" name="BOAT_YEAR_INSPECTION_CERTIFICATE" id="BOAT_YEAR_INSPECTION_CERTIFICATE"  maxlength="32" /></td>
									<td><span class="span10">内河船舶适航证书：</span></td>
									<td><input type="text" name="INLAND_BOAT_FIT_SAIL_CERTIFICATE" id="INLAND_BOAT_FIT_SAIL_CERTIFICATE"  maxlength="32" /></td>
									<td><span class="span10">船舶保险险种：</span></td>
									<td><input type="text" name="BOAT_INSURANCE_TYOE" id="BOAT_INSURANCE_TYOE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">船舶保险公司：</span></td>
									<td><input type="text" name="BOAT_INSURANCE_COMPANY" id="BOAT_INSURANCE_COMPANY"  maxlength="32" /></td>
									
									<td><span class="span10">投保金额：</span></td>
									<td><input type="text" name="INSURE_AMOUNT" id="INSURE_AMOUNT"  maxlength="32" /></td>
									<td><span class="span10">保险生效期：</span></td>
<!-- 									<td><input type="text" name="INSURANCE_EFFECTIVE_PERIOD" id="INSURANCE_EFFECTIVE_PERIOD"  maxlength="32" /></td> -->
 									<td><input class="span10 date-picker" name="INSURANCE_EFFECTIVE_PERIOD" id="INSURANCE_EFFECTIVE_PERIOD"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">保险到期日：</span></td>
<!-- 									<td><input type="text" name="INSURANCE_DUE_DATE" id="INSURANCE_DUE_DATE"  maxlength="32" /></td> -->
									<td><input class="span10 date-picker" name="INSURANCE_DUE_DATE" id="INSURANCE_DUE_DATE"   type="text" data-date-format="yyyy-mm-dd" readonly="readonly" /></td>
									<td><span class="span10">太平船代码：</span></td>
									<td><input type="text" name="PEACE_BOAT_CODE" id="PEACE_BOAT_CODE"  maxlength="32" /></td>
									<td><span class="span10">太平船名：</span></td>
									<td><input type="text" name="PEACE_BOAT_NAME" id="PEACE_BOAT_NAME"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">长荣船代码：</span></td>
									<td><input type="text" name="CHANGRONG_BOAT_CODE" id="CHANGRONG_BOAT_CODE"  maxlength="32" /></td>
									<td><span class="span10">长荣船名：</span></td>
									<td><input type="text" name="CHANGRONG_BOAT_NAME" id="CHANGRONG_BOAT_NAME"  maxlength="32" /></td>
									<td><span class="span10">马士基船代码：</span></td>
									<td><input type="text" name="MAERSK_BOAT_CODE" id="MAERSK_BOAT_CODE"  maxlength="32" /></td>
 									</tr>
 									<tr>
 									<td><span class="span10">马士基船名：</span></td>
									<td><input type="text" name="MAERSK_BOAT_NAME" id="MAERSK_BOAT_NAME"  maxlength="32" /></td>
									<td><span class="span10">UASC船代码：</span></td>
									<td><input type="text" name="UASC_BOAT_CODE" id="UASC_BOAT_CODE"  maxlength="32" /></td>
									<td><span class="span10">UASC船名：</span></td>
									<td><input type="text" name="UASC_BOAT_NAME" id="UASC_BOAT_NAME"  maxlength="32" /></td>
 									</tr>
 									<tr>
										
										<td>
										<a class="btn btn-xs btn-success">
											<i class="ace-icon fa fa-pencil-square-o bigger-120" onclick="add();">添加</i>								
										</a>
									</td>
									<td>
									<i>(<font color="red">*</font>只能输入数字和小数点，<font color="blue">*</font>只能输入数字)</i>
									</td>
									</tr>
 								</table>
 							</fieldset>
						</form>
						<form action="boatBaseDataManage/list" method="post" name="internalFeeManageform" id="internalFeeManageform">
							<fieldset>
								<table style="margin-top:5px;"class="tab2">
									<tr>
										<td><span class="span10">船名：</span></td>
										<td><input type="text"   name="SHIP_NAME" maxlength="32" /></td>
										<td><span class="span10">船舶代码：</span></td>
										<td><input type="text"  name="SHIP_CODE" maxlength="32" /></td>
										<td><span class="span10">船舶英文名：</span></td>
										<td><input type="text"   name="ENGLISH_NAME" maxlength="32" /></td>
										
										
									</tr>
									<tr>
									<td><span class="span10">所属江船公司：</span></td>
										<td><input type="text"   name="SETTLE_UNIT" maxlength="32" /></td>
										<td><span class="span10">太平船名：</span></td>
										<td><input type="text"   name="PEACE_BOAT_NAME" maxlength="32" /></td>
										<td><span class="span10">长荣船名：</span></td>
										<td><input type="text"   name="CHANGRONG_BOAT_NAME" maxlength="32" /></td>
									</tr>
									<tr>
										
										<td><span class="span10">马士基船名：</span></td>
										<td><input type="text"   name="MAERSK_BOAT_NAME" maxlength="32" /></td>
										<td><span class="span10">UASC船名：</span></td>
										<td><input type="text"   name="UASC_BOAT_NAME" maxlength="32" /></td>
										<td style="text-align: center;" colspan="10">
										<a class="btn btn-xs btn-success">
											<i class="ace-icon fa fa-pencil-square-o bigger-120" onclick="serch();">查询</i>
										</a>
									</td>
									</tr>
									
<!-- 									<tr> -->
<!-- 									<td style="text-align: left;" colspan="10"> -->
										
<!-- 									</td> -->
<!-- 									</tr> -->
								</table>
							</fieldset>
						</form>
						<fieldset>
						
						<a class="btn btn-mini btn-danger">
							<i class='ace-icon fa fa-trash-o bigger-120' onclick="deleteInfo();">批量删除</i>
							
						</a>
										
							<table id="simple-table"  class="table table-striped table-bordered table-hover"  style="margin-top:5px;width:8000px;table-layout:fixed;">
								<thead>
								<tr id="test1">
									<th class="center" style="width:35px;">
									<label class="pos-rel"><input type="checkbox" class="ace" id="zcheckbox" /><span class="lbl"></span></label>
									</th>
									<th class="center"id="option5">修改</th>
									<th class="center"id="option5">删除</th>
									<th class="center"id="option0">结算单位</th>
									<th class="center"id="option2">船舶代码</th>
									<th class="center"id="option3">船名</th>
				 					<th class="center"id="option4">船舶属性</th>
									<th class="center"id="option5">英文名</th>
									<th class="center"id="option5">船型</th>
									<th class="center"id="option5">船舶类型</th>
									<th class="center"id="option5">航线</th>
									<th class="center"id="option5">船舶总长</th>
									<th class="center"id="option5">船长</th>
									<th class="center"id="option5">最大船高</th>
									<th class="center"id="option5">最大船宽</th>
									<th class="center"id="option5">总吨</th>
									<th class="center"id="option5">净吨</th>
									<th class="center"id="option5">型深</th>
									<th class="center"id="option5">载货量</th>
									<th class="center"id="option5">满载排水量</th>
									<th class="center"id="option5">空载排水量</th>
									<th class="center"id="option5">满载吃水</th>
									<th class="center"id="option5">空载吃水</th>
									<th class="center"id="option5">主机台数</th>
									<th class="center"id="option5">主机功率</th>
									<th class="center"id="option5">主机型号</th>
									<th class="center"id="option5">集装箱数</th>
									<th class="center"id="option5">建造日期</th>
									<th class="center"id="option5">投保类型</th>
									<th class="center"id="option5">投保人</th>
									<th class="center"id="option5">投保公司</th>
									<th class="center"id="option5">保险开始时间</th>
									<th class="center"id="option5">保险结束时间</th>
									<th class="center"id="option5">投保时间</th>
									<th class="center"id="option5">投保备注</th>
									<th class="center"id="option5">证书有效期</th>
									<th class="center"id="option5">联系电话</th>
									<th class="center"id="option5">海关监管部号码</th>
									<th class="center"id="option5">交通部批文有效期</th>
									<th class="center"id="option5">内外贸同船运输有效期</th>
									<th class="center"id="option5">光船租赁有效期</th>
									<th class="center"id="option5">初次登记号</th>
									<th class="center"id="option5">船检登记号</th>
									<th class="center"id="option5">船舶识别码</th>
									<th class="center"id="option5">营业运输证编号</th>
									<th class="center"id="option5">是否可用</th>
									<th class="center"id="option5">检索码</th>
									<th class="center"id="option5">太平船代码</th>
									<th class="center"id="option5">太平船名</th>
									<th class="center"id="option5">长荣船代码</th>
									<th class="center"id="option5">长荣船名</th>
									<th class="center"id="option5">马士基船代码</th>
									<th class="center"id="option5">马士基船名</th>
									<th class="center"id="option5">UASC船代码</th>
									<th class="center"id="option5">UASC船名</th>
									<th class="center"id="option5">备注</th>
									<th class="center"id="option5">船舶登记号</th>
									<th class="center"id="option5">联系人</th>
									<th class="center"id="option5">船籍港</th>
									
									
								</tr>
							</thead>
							<tbody>
							<c:choose>
								<c:when test="${not empty boatBaseDataManage}">
									<c:forEach items="${boatBaseDataManage}" var="boatBaseDataManage" varStatus="vs">		
										<tr id="trId">
										
											<td class="dbclicktd" style="width: 30px;">
												<label><input type='checkbox' value="${boatBaseDataManage.ID }" id="ids"name="ids"class="ace"/><span class="lbl"></span></label>
												
											</td>
											<td class="dbclicktd">
											<div class="hidden-sm hidden-xs btn-group">
												<a class="btn btn-xs btn-success" onclick="edit('${boatBaseDataManage.ID}');">
													<i class="ace-icon fa fa-pencil-square-o bigger-120">修改</i>
												</a>
											</div>
											</td>
											<td class="dbclicktd">
											<div class="hidden-sm hidden-xs btn-group">
												<a class="btn btn-mini btn-danger"onclick="deleteInfot('${boatBaseDataManage.ID}');">
													<i class="ace-icon fa fa-trash-o bigger-120">删除</i>
												</a>
											</div>
											</td>	
											<td class="dbclicktd"  id="td1">${boatBaseDataManage.SETTLE_UNIT}</td>
											<td class="dbclicktd" id="td2">${boatBaseDataManage.SHIP_CODE}</td>
											<td class="dbclicktd" id="td3">${boatBaseDataManage.SHIP_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_ATTRIBUTE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.ENGLISH_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_SHAPE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_TYPE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.ROUTE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_TOTAL_LENGTH}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_LENGTH}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MAX_BOAT_HIGH}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MAX_BOAT_WIDE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.GROSS_REGISTERED_TONNAGE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.NET_TON}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.TYPE_DEEP}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.FREIGHT_CAPACITY}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.LOAD_DISPLACEMENT}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.LIGHT_DISPLACEMENT}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.LOAD_DRAUGHT}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.LIGHT_DRAUGHT}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MASTER_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MASTER_POWER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MASTER_TYPE_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CONTAINER_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.BUILD_DATE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INSURANCE_TYPE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.POLICY_HOLDER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INSURANCE_COMPANY}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INSURANCE_EFFECTIVE_PERIOD}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INSURANCE_DUE_DATE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INSURE_TIME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.REMARK}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CERTIFICATE_VALIDITY_TERM}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.TEL}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CUSTOMS_SUPERVISE_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.TRAFFIC_DEPARTMENT_APPROVAL_VALIDITY_TERM}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.INTERNAL_FOREIGN_TRADE_VALIDITY_TERM}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.BAREBOAT_LEASE_VALIDITY_TERM}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.FIRST_REGISTER_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_INSPECTION_REGISTER_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.BOAT_IDENTIFICATION_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.BUSINESS_TRANSPORT_NUMBER}</td>
											<td class="dbclicktd"><c:choose><c:when test="${boatBaseDataManage.ENABLE==1}">是</c:when>
												<c:otherwise>否</c:otherwise></c:choose></td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.FAST_SEARCH_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.PEACE_BOAT_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.PEACE_BOAT_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CHANGRONG_BOAT_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CHANGRONG_BOAT_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MAERSK_BOAT_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.MAERSK_BOAT_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.UASC_BOAT_CODE}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.UASC_BOAT_NAME}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.REMARK}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.BOAT_REGISTER_NUMBER}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.CONTACT}</td>
											<td class="dbclicktd"id="td4">${boatBaseDataManage.SHIP_PORT}</td>
										</tr>
										
									
									</c:forEach>
<!-- 									<div class="hidden-sm hidden-xs btn-group"> -->
<%-- 											<a class="btn btn-xs btn-success" title="编辑" onclick="editUser('${user.USER_ID}');"> --%>
<!-- 														<i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> -->
<!-- 													</a> -->
<!-- 												</div> -->
								</c:when>
							</c:choose>
							</tbody>
							</table>
							<div class="page-header position-relative">
							<table style="width:100%;">
							<tr>
								<td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
							</tr>
						</table>
						</div>
						</fieldset>
					</div>
				</div>
			</div>
		</div>
	</div>
	<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
			<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
		</a>
</div>
</div>
<%@ include file="../../../system/index/foot.jsp"%>
	<!-- ace scripts -->
	<script src="static/ace/js/ace/ace.js"></script>
	<!-- 日期框 -->
	<script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
</body>
<script type="text/javascript">
$(function(){
	
	//日期框
	$('.date-picker').datepicker({autoclose: true,todayHighlight: true});
});
//数字和小数点验证
function number(){
	var Page_num=document.getElementById("SHIP_TOTAL_LENGTH");
	var Page_num1=document.getElementById("SHIP_LENGTH");
	var Page_num2=document.getElementById("MAX_BOAT_HIGH");
	var Page_num3=document.getElementById("MAX_BOAT_WIDE");
	var Page_num4=document.getElementById("TYPE_DEEP");
	var Page_num5=document.getElementById("FREIGHT_CAPACITY");
	var Page_num6=document.getElementById("LOAD_DISPLACEMENT");
	var Page_num7=document.getElementById("LIGHT_DISPLACEMENT");
	var Page_num8=document.getElementById("LOAD_DRAUGHT");
	var Page_num9=document.getElementById("LIGHT_DRAUGHT");
	
	var showPage=document.getElementById("showPage");
	var showPage1=document.getElementById("showPage1");
	var showPage2=document.getElementById("showPage2");
	var showPage3=document.getElementById("showPage3");
	var showPage4=document.getElementById("showPage4");
	var showPage5=document.getElementById("showPage5");
	var showPage6=document.getElementById("showPage6");
	var showPage7=document.getElementById("showPage7");
	var showPage8=document.getElementById("showPage8");
	var showPage9=document.getElementById("showPage9");

	
	Judge(Page_num,/^\d*\.{0,1}\d{0,1}$/,showPage);
	Judge(Page_num1,/^\d*\.{0,1}\d{0,1}$/,showPage1);
	Judge(Page_num2,/^\d*\.{0,1}\d{0,1}$/,showPage2);
	Judge(Page_num3,/^\d*\.{0,1}\d{0,1}$/,showPage3);
	
	Judge(Page_num4,/^\d*\.{0,1}\d{0,1}$/,showPage4);
	Judge(Page_num5,/^\d*\.{0,1}\d{0,1}$/,showPage5);
	
	Judge(Page_num6,/^\d*\.{0,1}\d{0,1}$/,showPage6);
	Judge(Page_num7,/^\d*\.{0,1}\d{0,1}$/,showPage7);
	Judge(Page_num8,/^\d*\.{0,1}\d{0,1}$/,showPage8);
	Judge(Page_num9,/^\d*\.{0,1}\d{0,1}$/,showPage9);
	function Judge(k,m,n){
	var patrn=m;
	if (patrn.exec(k.value)) {
		n.setAttribute("style","display:none;");
		return;
		} 
	else{
	if(k.value==""){
	//n.setAttribute("style","display:none;");
	return;
	}else{
	n.setAttribute("style","display:inline;");
	n.setAttribute("style","color:red;font-size:10px;");
	k.value="";
	}
	}
	}
	}
	//数字验证
function numberTwo(){

	var Page_num=document.getElementById("GROSS_REGISTERED_TONNAGE");
	var Page_num1=document.getElementById("NET_TON");
	var Page_num2=document.getElementById("MASTER_NUMBER");
	var Page_num3=document.getElementById("MASTER_POWER");
	var Page_num4=document.getElementById("TON_WEIGHT");
	var Page_num5=document.getElementById("CONTAINER_NUMBER");
	var showPage=document.getElementById("show");
	var showPage1=document.getElementById("show1");
	var showPage2=document.getElementById("show2");
	var showPage3=document.getElementById("show3");
	var showPage4=document.getElementById("show22");
	var showPage5=document.getElementById("show21");
	Judge(Page_num,/^\d+$/,showPage);
	Judge(Page_num1,/^\d+$/,showPage1);
	Judge(Page_num2,/^\d+$/,showPage2);
	Judge(Page_num3,/^\d+$/,showPage3);
	Judge(Page_num4,/^\d+$/,showPage4);
	Judge(Page_num5,/^\d+$/,showPage5);
// 	Judge(cheap_price,/^\d{0,8}\.{0,1}(\d{1,2})?$/,showCheap);
	function Judge(k,m,n){
	var patrn=m;
	if (patrn.exec(k.value)) {
		
		n.setAttribute("style","display:none;");
		return;
		} 
	else{
	if(k.value==""){
	//n.setAttribute("style","display:none;");
	return;
	}else{
	n.setAttribute("style","display:inline;");
	n.setAttribute("style","color:red;font-size:10px;");
	k.value="";
	}
	}
	}
	}
function add(){

	 $.ajax({
         type: "POST",
         url: '<%=basePath%>boatBaseDataManage/saveOrUpdateBoatBaseDataManage',
         data: $("#internalFeeManage").serialize(),
         dataType: 'json',
         cache: false,
         success: function (data) {
        	 alert("保存成功")
        	 window.location.reload();
        	 
         }
     });
}
function edit(ID){
	 top.jzts();
	 var diag = new top.Dialog();
	 diag.Drag=true;
	 diag.Title ="编辑";
	 diag.URL = '<%=basePath%>boatBaseDataManage/editBoatBaseDataManage?ID='+ID;
	 diag.Width = 800;
	 diag.Height = 510;
	 diag.CancelEvent = function(){ //关闭事件
		window.location.reload();
		diag.close();
	 };
	 diag.show();
}
function deleteInfot(ID){
	$.ajax({
        type: "POST",
        url: '<%=basePath%>boatBaseDataManage/deleteBoatBaseDataManage?ID='+ID,
        dataType: 'json',
        cache: false,
        success: function (data) {
       	 window.location.reload();
       	 
        }
    });
}
function deleteInfo(){
	var trList = [];
	var $simpleTabletr = $("#simple-table tbody tr");
	var list = {}
	for(var i=0,len=$simpleTabletr.length;i<len;i++){
		var objTr = $simpleTabletr[i];
		
		var flag = $(objTr).find("td").first().find("label").find("#ids")[0].checked;
		if(flag){
			trList.push(objTr);
		}
	}
	//传到后台的data json格式
	var data = [];
	 for(var i=0,size=trList.length;i<size;i++){
		var $tds = $(trList[i]).find("td");
		//id
		var id = $($tds[0]).find("label").find("input[name='ids']")[0].value;
		var item = {};
		item.ID = id.trim();
		data.push(item)
	}
	 var dataStr = JSON.stringify(data);
	 $.ajax({
         type: "POST",
         url: '<%=basePath%>boatBaseDataManage/deleteBoatBaseDataManageAll',
         data: {dataJsonStr:dataStr},
         dataType: 'json',
         //beforeSend: validateData,
         cache: false,
         success: function (data) {
        	 window.location.reload();
        	 
         }
     });
}
$(function() {
	//复选框全选控制
	var active_class = 'active';
	$('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on('click', function(){
		var th_checked = this.checked;//checkbox inside "TH" table header
		$(this).closest('table').find('tbody > tr').each(function(){
			var row = this;
			if(th_checked) $(row).addClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', true);
			else $(row).removeClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', false);
		});
	});
});
function serch(){
	top.jzts();
	$("#internalFeeManageform").submit();
	}
// var html  = document.body.innerHTML;
// html = html.replace(new RegExp("\\*","g"),"<font color='red'>*</font>");
// document.body.innerHTML = html;
</script>
</html>